﻿@model IEnumerable<DNA.Mvc.PrivateMessage>
@{
    Layout = "~/Views/Shared/_Dashboard.cshtml";
}
@UIHelper.ImageTitle(ViewBag.Title,ViewBag.Desc,ViewBag.ImageUrl)
@{ 
    Ajax.Dna().Grid(Model)
        .Columns(cols =>
        {
            cols.Bound(m => m.Title).Title("Subject").Template(@<text>
    <h4 style="margin: 2px 0px;">@item.Title</h4>
    <p>
        @item.Content;
    </p>
    </text>);
            cols.Bound(m => m.Sent).Title("Date").Width(150);
        })
        .Pagable()
        .Render();
}
